#ifndef _FINISHLEVEL_H
#define _FINISHLEVEL_H
#include "IGameState.h"
#include "CSprite.h"
#include "Text.h"
#include "Mario.h"

class FinishLevelScreen : public IGameState
{
private:
	CSprite* backgroud;
	CText* m_text;
	Mario* mario;
	CSprite *marioLife;
	CSprite *coinCount;
	D3DXVECTOR2 marioPos;
	D3DXVECTOR2 coinPos;
	int level;
	int time;
	int score;
	int life;
	int coin;

	float timeCountCoin;
	float timeCountTimes;
	float timeWaitToNextLv;
public:
	FinishLevelScreen(Mario*, int);
	virtual ~FinishLevelScreen();

	virtual void Create();
	virtual void Release();
	virtual void HandleInput(CInput*,float);
	virtual void Update(float dt);
	virtual void Draw();
};

#endif
